package com.leyou.user.client;

import com.leyou.user.dto.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author hcz
 * @describtion 这个是授权中心来远程查询用户名和密码的接口
 * @date 2019-07-09 20:19
 */
@FeignClient("user-service")
public interface UserClient {

    @GetMapping("query")
    UserDTO queryUserByUsernameAndPassword(
            @RequestParam("username") String username, @RequestParam("password") String password);
}
